# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo0935
# Description:  else 块 没有异常的情况会运行
# Author:       yzl
# Date:         2019-03-23
#-------------------------------------------------------------------------------

a = 10
b = 2
c = 0

def div(a,b):
    try:
        c = a / b # 1
    except Exception as e:
        print(e)
        return None
    else:
        # 语义的连贯 # 1
        return c + 10


if __name__ == '__main__':
    d = div(a,b)
    if d is not None:
        print(d)
    else:
        print('exception over')


# print('global')
# print(c)
# print('over')


